caius / mies

Installs modern.ie VMs
1 stars 0 forks source link

Duplicate folders created when importing into virtualbox #2

Open caius opened 10 years ago

caius commented 10 years ago

Importing an ova into virtualbox appears to create two folders, one containing the VM data and the other containing the VM hard drive.

$ tree ~/VirtualBox\ VMs/{IE,ie}9*
/Users/caius/VirtualBox\ VMs/IE9\ -\ Win7
└── IE9\ -\ Win7-disk1.vmdk
/Users/caius/VirtualBox\ VMs/ie9_win7
├── Logs
│   ├── VBox.log
│   └── VBox.log.1
├── Snapshots
│   └── {6ecb0b52-90f9-4a3f-b6e2-e56d6689b9ea}.vmdk
├── ie9_win7.vbox
└── ie9_win7.vbox-prev

2 directories, 6 files

(This is on a HFS+, case-insensitive filesystem.)

caius commented 10 years ago

Seems when we're specifying the VM name, it doesn't change the location the hard drive will be stored in:

$ VBoxManage import --dry-run ~/Documents/ievms/IE8_XP/IE8.XP.For.MacVirtualBox.ova --vsys 0 --vmname ie8_xp                                    2013-11-25 10:46:17 | 100% (0:00)
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/caius/Documents/ievms/IE8_XP/IE8.XP.For.MacVirtualBox.ova...
OK.
Disks:  vmdisk1 136260878336    -1  http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized   IE8.XP.For.MacVirtualBox-disk1.vmdk -1  -1  
Virtual system 0:
 0: Suggested OS type: "WindowsXP"
    (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)
 1: VM name specified with --vmname: "ie8_xp"
 2: Number of CPUs: 1
    (change with "--vsys 0 --cpus <n>")
 3: Guest memory: 512 MB
    (change with "--vsys 0 --memory <MB>")
 4: Sound card (appliance expects "", can change on import)
    (disable with "--vsys 0 --unit 4 --ignore")
 5: USB controller
    (disable with "--vsys 0 --unit 5 --ignore")
 6: Network adapter: orig NAT, config 2, extra slot=0;type=NAT
 7: CD-ROM
    (disable with "--vsys 0 --unit 7 --ignore")
 8: IDE controller, type PIIX4
    (disable with "--vsys 0 --unit 8 --ignore")
 9: IDE controller, type PIIX4
    (disable with "--vsys 0 --unit 9 --ignore")
10: Hard disk image: source image=IE8.XP.For.MacVirtualBox-disk1.vmdk, target path=/Users/caius/VirtualBox VMs/IE8 - WinXP/IE8.XP.For.MacVirtualBox-disk1.vmdk, controller=8;channel=0
    (change target path with "--vsys 0 --unit 10 --disk path";
    disable with "--vsys 0 --unit 10 --ignore")