You are not logged in.

#1 2012-01-15 07:12:54

Ceps
Member
Registered: 2012-01-07
Posts: 11

Xen Arch domU

Hello everyone, I've been trying to configure Arch as guest under Arch dom0. A couple days ago I posted this and after that i was able to boot into dom0. Using xm list correctly display dom0 running. However following the next steps i cant figure out how to set up the guest. The steps for guest start with formatting /dev/sdb1 but there is no indication what sdb1 is, I used dd to create a file formatted later and mounted into sdb1 and followed the rest of the wiki but when I use xm create -c dom01 I get bootloader didn't return any data.

Here are some files i think are relevant (from domU filesystem mounted using mount -o loop /dev/sdb1):

#/etc/fstab
/dev/xvda    /    ext4    defaults    0    1
#/boot/grub/menu.lst
title Arch Linux
root (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/xvda1 ro console=hvc0
initrd /boot/initramfs-linux.img

Thanks in advance!

Offline

#2 2012-01-15 20:54:18

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Xen Arch domU

I installed dom0 on /dev/sda1 and used /dev/sdb1 as an example of a block device of where a person could install a domu.

Offline

#3 2012-01-17 00:40:17

Ceps
Member
Registered: 2012-01-07
Posts: 11

Re: Xen Arch domU

Sorry you lost me, what do you mean you installed dom0 on sda1? When I installed xen dom0 is a kernel that I boot into from boot menu.

Offline

#4 2012-01-17 00:50:57

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Xen Arch domU

In my case I installed arch linux running as dom0 on /dev/sda1

A domU needs to be installed on a block device (eg /dev/sda2 or /dev/sdb1 etc) as well.  In the wiki I used /dev/sdb1 as an example, you'll have to change it to whichever block device you're using.

Last edited by steve___ (2012-01-17 00:51:37)

Offline

#5 2012-01-19 04:02:26

Ceps
Member
Registered: 2012-01-07
Posts: 11

Re: Xen Arch domU

So I was able to start my domU.I had no idea how to setup the block device (sry I'm a nub) and didn't want to ask so soon, so I tried a lot of stuff till it finally worked. These are the steps:
1) dd if=/dev/zero bs=1M count=8000 of=xen.rootfs
2) format the file mkfs.ext4
3) mount -o loop /dev/sdba1 /home/xen/xen.rootfs (of course use your folder/filename here, I used /dev/sdb1 to keep it similar to the wiki)
4) After this I followed the steps on the wiki but I changed the configuration file (dom01), specifically the line disk = [ 'phy:/dev/sdb1,xvda,w' ]

# dom01 Config File
kernel = "/boot/vmlinuz26"
ramdisk = "/boot/kernel26.img"
memory = 1024
name = "dom01"
vif = [ 'mac=00:16:3e:00:01:01' ]
disk = [ 'file:/home/xen/rootfs,xvda,w' ]
dhcp="dhcp"
hostname = "hostName"
root = "/dev/xvda ro"

5) After that i was able to run xm create -c dom01 and everything was perfect! (well... network is not working but thats another issue)

Thanks steve for your help!

Offline

Board footer

Powered by FluxBB