This is one of the coolest features ever. The longest part is just downloading the files. To optimize that:
# sudo apt-get install apt-proxy
Once that is installed, run:
# sudo ubuntu-vm-builder kvm hardy --mirror http://127.0.0.1:9999/ubuntu
Wow. There is your vm. On my *laptop* this build took:
real 2m44.658s
user 0m34.270s
sys 0m24.262s
If you want to make a vmware image, and have open-vm-tools installed already, add this line to your apt-proxy’s sources.list:
# deb http://ppa.launchpad.net/sharms/ubuntu hardy main
Then:
# apt-get update
Then run:
# sudo ubuntu-vm-builder vmserver hardy --mirror http://127.0.0.1:9999/ubuntu --addpkg open-vm-tools
Related posts:
#1 by Vadim P. on June 16, 2008 - 8:17 am
Quote
So if I install ‘ubuntu-desktop’ in the jeos then, I’ll have a full ubuntu vm?
#2 by admin on June 16, 2008 - 9:13 am
Quote
That should work but I haven’t personally tested it
#3 by Christer Edwards on June 16, 2008 - 12:39 pm
Quote
I get this error when building, and my vm won’t launch using qemu:
Searching for GRUB installation directory … found: /boot/grub
findfs: Unable to resolve ‘UUID=517279a9-968d-4cc0-9b22-c795cfd75d7c’
Cannot determine root device. Assuming /dev/hda1
This error is probably caused by an invalid /etc/fstab
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
Searching for splash image … none found, skipping …
Found kernel: /boot/vmlinuz-2.6.24-16-server
Updating /boot/grub/menu.lst … done
What’d I miss?
#4 by sharms on June 16, 2008 - 3:50 pm
Quote
Christer:
That is what I see too, then it goes to the next step and works:
Searching for GRUB installation directory … found: /boot/grub
findfs: Unable to resolve ‘UUID=a3671665-dc9c-47ef-8d77-edc5b464a738′
Cannot determine root device. Assuming /dev/hda1
This error is probably caused by an invalid /etc/fstab
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
Searching for splash image … none found, skipping …
Found kernel: /boot/vmlinuz-2.6.24-16-virtual
Updating /boot/grub/menu.lst … done
Searching for GRUB installation directory … found: /boot/grub
umount target
(VMDK) image open: flags=0×2 filename=root.vmdk
Done. Images are in /home/sharms/ubuntu-vm-hardy-i386.