I am following the installation/setup instructions at https://help.ubuntu.com/community/XenProposed to install ubuntu + xen. I was able to install a PV guest OS. However, when I got to the HVM guest OS part, I keep getting the statement:
error: domain 'ubuntu-hvm' does not exist
This error shows when I execute the following command:
sudo xm create /etc/xen/ubuntu-hvm.cfg
ubuntu-hvm.cfg looks like the following:
builder = "hvm" name = "ubuntu-hvm" memory = "512" vcpus = 1 vif = [''] disk = ['phy:/dev/xenvg/ubuntu-hvm,hda,w','file:/home/jwayne/ubuntu-12.04-desktop-amd64.iso,hdc:cdrom,r'] vnc = 1 boot="dc"
I did some internet searches, and some site the
dhcp = 'dhcp' line in the configuration file as the problem (which I do not have). I've also seen some variations of the configuration file where they set:
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
which doesn't resolve the error message for me.
The way I create a logical volume is as follows:
sudo lvcreate -L 4G -n ubuntu-hvm /dev/xenvg
The logs at /var/log/xen/qemu-dm-ubuntu-hvm.log looks like the following.
Using file /dev/xenvg/ubuntu-hvm in read-write mode Using file /home/jwayne/ubuntu-12.04-desktop-amd64.iso in read-only mode Watching /local/domain/0/device-model/3/lodirty/cmd Watching /local/domain/0/device-model/3/command Watching /local/domain/3/cpu qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = d56fc9dd-0a2e-a797-8ebe-c4f0d7a4fae8 Time offset set 0 populating video RAM at ff000000 mapping video RAM at ff000000 Register xen platform. Done register platform. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error Could not read keymap file: '/usr/share/qemu/keymaps/en-us'
How can I fix this problem?