Here is a another VM, this time its a Xen Gentoo VM running inside a VMware Gentoo VM, how about that 😉
VMware Base Gentoo Linux Configuration
Distribution: 2006.0
Linux Kernel: 2.6-15-r1
Installation Type: Desktop (KDE)
Networking: DHCP
User Name/password – none
Root Password: optdlvrs
Gentoo Xen VM inside the Base Gentoo Linux Configuration
Distribution: 2006.0
Linux Kernel: 2.6-15-r1
Installation Type: Desktop (KDE)
Networking: DHCP
User Name/password – none
Root Password: optdlvrs
VMware Base Virtual Machine Configuration
RAM: 256 MB (configurable by editing the gentoo.vmx file)
Disk: 10.0 GB (sorry I had to err on the side of plenty)
Networking: Bridged
VMware Tools: Loaded
Monitor Resolution: 1024×768
Gentoo Xen VM Configuration
RAM: 256 MB (configurable by editing the gentoo.vmx file)
Disk: 10.0 GB (sorry I had to err on the side of plenty)
Networking: Bridged
VMware Tools: Not Applicable
Monitor Resolution: 1024×768
Download Information
Available in the Downloads page.
Steps to get the VMs up and running:
Extract the gentoo-xen.tbz2 as follows
tar xjf gentoo-xen.tbz2
This creates the following files
gentoo-s001.vmdk
gentoo-s002.vmdk
gentoo-s003.vmdk
gentoo-s004.vmdk
gentoo-s005.vmdk
gentoo.vmdk
gentoo.vmx
Optionally edit the vmx file to change the number of cpus. To prepare the
virtual disk which will be used by the Xen VM,
In the VMware Workstation interface, click on Clone this virtual machine
Select Clone from current state
Select Create a full clone
Name the clone and choose a suitable location for the cloned disk
When the cloning process completes, Edit the settings of the **original** VM
Click on Add
Select Hard disk, Existing disk and browse to the **cloned** disk.
The VM is now ready to boot. Power on the VM as follows
vmware gentoo.vmx
Select the xen image when GRUB loads and login as root (password: optdlvrs)
Start the xend daemon
xend start
The command takes a while to complete so be patient. When you are returned
to the shell prompt , type
xm list
to see a list of running domains. You will see only domain0 running currently.
To start the first unprivileged xen guest domain, use the gentoo-xen-domU file
in the /root directory. This guest will use the cloned virtual disk (sdb to the
xen host) as it’s root disk (sda)
To start the Xen guest
xm create -c gentoo-xen-domU
The (xen) VM appears to hang when setting the hardware clock , wait for a few
minutes and the VM will continue to boot.
That’s it 🙂
BTW: This VM and the above test was graciously created by my good friend and colleague dominic. Hope you guys enjoy using it as much we enjoyed creating it.
Thanks!
Leave a Reply