[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to create a Xen guest?




Hi,
Got a question:
I just setup my Xen hypervisor running inside Ubuntu 14.04.ÂÂ

>ps -ef|grep xen
rootÂÂÂÂÂÂÂ 65ÂÂÂÂ 2Â 0 16:28 ?ÂÂÂÂÂÂÂ 00:00:00 [xenwatch]
rootÂÂÂÂÂÂÂ 66ÂÂÂÂ 2Â 0 16:28 ?ÂÂÂÂÂÂÂ 00:00:00 [xenbus]
rootÂÂÂÂÂÂÂ 72ÂÂÂÂ 2Â 0 16:28 ?ÂÂÂÂÂÂÂ 00:00:00 [xenbus_frontend]
rootÂÂÂÂÂ 2486ÂÂÂÂ 1Â 0 16:29 ?ÂÂÂÂÂÂÂ 00:00:00 /usr/lib/xen-4.4/bin/xenstored --pid-file=/var/run/xenstore.pid
rootÂÂÂÂÂ 2492ÂÂÂÂ 1Â 0 16:29 ?ÂÂÂÂÂÂÂ 00:00:00 /usr/lib/xen-4.4/bin/xenconsoled --pid-file=/var/run/xenconsoled.pid
rootÂÂÂÂÂ 2498ÂÂÂÂ 1Â 0 16:29 ?ÂÂÂÂÂÂÂ 00:00:00 /usr/bin/qemu-system-i386 -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize -monitor /dev/null -serial /dev/null -parallel /dev/null -pidfile /var/run/qemu-dom0.pid
rootÂÂÂÂÂ 5415Â 2196Â 4 16:50 ?ÂÂÂÂÂÂÂ 00:01:00 /usr/bin/qemu-system-i386 -xen-domid 2 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait -mon chardev=libxl-cmd,mode=control -nodefaults -name HVM_domU -vnc 0.0.0.0:1,to=99 -display none -device cirrus-vga -global vga.vram_size_mb=8 -boot order=cda -smp 2,maxcpus=2 -net none -machine xenfv -m 248 -drive file=/sda11/xenhvm.dd,if=ide,index=0,media=disk,format=raw,cache=writeback -drive file=/sda11/CentOS-7-x86_64-DVD-1511.iso,if=ide,index=2,readonly=on,media=cdrom,format=raw,cache=writeback,id=ide-5632
rootÂÂÂÂÂ 5422Â 2196Â 0 16:50 ?ÂÂÂÂÂÂÂ 00:00:00 /usr/lib/xen-4.4/bin/xl create xenhvmguest_min.cfg


Some remarks/questions (please correct me if wrong):

a.ÂÂ "xl create" is used for creating my xen guest:

name = 'HVM_domU'
builder = 'hvm'
memory = 256
vcpus = 2
disk = [ 'file:/sda11/xenhvm.dd,xvda,w', 'file:/sda11/CentOS-7-x86_64-DVD-1511.iso,hdc:cdrom,r' ]
###vif = [ 'mac=00:16:3e:00:00:00,bridge=xenbr0' ]
vnc = 1
vnclisten = '0.0.0.0'
vncdisplay = 1

/sda11/xenhvm.dd and /sda11/CentOS.iso are physical file.

and sudo xl list
NameÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ IDÂÂ Mem VCPUsÂÂÂ StateÂÂÂ Time(s)
Domain-0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0Â 7454ÂÂÂÂ 8ÂÂÂÂ r-----ÂÂÂ 2449.6
HVM_domUÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 2ÂÂ 256ÂÂÂÂ 2ÂÂÂÂ -b----ÂÂÂÂÂ 82.2


Correct?

b. My OS is Ubuntu 64-bit, but the dom0 in the ps listed above started by qemu-system-i386? So where is dom0 running right now?  Can I connect to the console if it does have have any graphical interface (nographics inside qemu command line).

sudo xl console Domain-0
Can't specify Domain-0

sudo xl console HVM_domU
xenconsole: Could not read tty from store: No such file or directory

Both gave me error.

If I look at this:

Xen Architecture with HVM dom0
HVM Dom0

HVM Domain

Device
Manager &
Control s/w

Qemu
(virtio
backend)

Ring3

Unmodifie...

So my Dom0 is running 64-bit Ubuntu (which is what I am having right now), but ps list it as using qemu-system-i386 to run it?

c.ÂÂ How do I specify to use 64-bit of qemu?ÂÂ And where is the screen showing the cdrom?

d. Â I just simply want an interface to pop up showing me the CentOS bootup disk, so I I can install CentOS guest inside my Ubuntu host, how to specify that?
ÂÂ

--
Regards,
Peter Teoh
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.