Hello, I am new to virtualization and even newer to Linux. The FAQ and documentation for Xen seem to presume a certain level of prior low-level Linux and/or Xen knowledge. (None of which I have...) Currently, my virtualization experience is mostly limited to the VMware Workstation products which seem fairly straight forward from a user''s stand point. Clearly, Xen is a very different beast from even VMware ESX server... Can someone help answer up a few questions for me? -- In the VWware world, each domain has the full illusion a system to it''s self. I get the idea that this is not the case in Xen, but how can this be while still enforcing the integrity of each domain? -- In the VWware world, I/O (Disk, Network, HID, VGA, etc..) is handled by "virtual hardware devices" that can be assigned to each domain at will, and are in turn somehow securely mapped and shared to their real world counterparts. Is this the case in Xen? -- In the VWware ESX server product, identical memory pages among similar domains can be transparently consolidated to free up more physical RAM for the domains to use. Is this also the case in Xen? Thank you, David _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am not able to login on my domU using /dev/hda2 from my hardrive xm create -c myvmconf vmid=1 /etc/xen/myvmconf looks like this : def vmid_check(var, val): val = int(val) if val <= 0: raise ValueError return val xm_vars.var(''vmid'', use="Virtual machine id. Integer greater than 0.", check=vmid_check) xm_vars.check() kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" #builder=''linux'' memory = 64 name = "VM%d" % vmid cpu = -1 # leave to Xen to pick #cpu = vmid # set based on vmid (mod number of CPUs) vcpus = 1 #vcpus = 4 # make your domain a 4-way #nics=1 #vif = [ ''mac=aa:00:00:00:00:11, bridge=xen-br0'' ] disk = [ ''phy:hda%d,hda2,r'' %(1+vmid)] dhcp="dhcp" root = "/dev/hda2 ro" =========================================MESSAGES WHILE THE KERNEL BOOTS UP on issuing command xm create -c myvmconf vmid=1 =========================================Using config file "/etc/xen/myvmconf". Started domain VM1, console on port 9601 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Linux version 2.6.11-1.1369_FC4xenU (bhcompile@decompose.build.redhat.com) (gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 SMP Thu Jun 2 23:33:51 EDT 2005 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000004000000 (usable) 64MB LOWMEM available. Using x86 segment limits to approximate NX protection DMI not present. IRQ lockup detection disabled Allocating PCI resources starting at 04000000 (gap: 04000000:fc000000) Built 1 zonelists Kernel command line: ip=:1.2.3.4::::eth0:dhcp root=/dev/hda2 ro Initializing CPU#0 PID hash table entries: 1024 (order: 10, 16384 bytes) Xen reported: 2258.351 MHz processor. Using tsc for high-res timesource Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 60800k/65536k available (1785k kernel code, 4648k reserved, 506k data, 156k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Security Framework v1.0.0 initialized SELinux: Initializing. SELinux: Starting in permissive mode selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary Mount-cache hash table entries: 512 CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 512K Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking ''hlt'' instruction... disabled CPU0: Intel(R) Pentium(R) 4 CPU 2.26GHz stepping 07 per-CPU timeslice cutoff: 1462.80 usecs. task migration cache decay timeout: 2 msecs. SMP motherboard not detected. smpboot_clear_io_apic_irqs Brought up 1 CPUs softlockup thread 0 started up. NET: Registered protocol family 16 xen_mem: Initialising balloon driver. Grant table initialized audit: initializing netlink socket (disabled) audit(1123568901.803:1): initialized Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) SELinux: Registering netfilter hooks Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key 42BD35A990375F72 - User ID: Red Hat, Inc. (Kernel Module GPG key) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize Xen virtual console successfully installed as tty1 Event-channel device installed. Blkif frontend is using grant tables. xen_blk: Initialising virtual block device driver xen_net: Initialising virtual ethernet driver. md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 256 buckets, 4Kbytes TCP established hash table entries: 4096 (order: 4, 65536 bytes) TCP bind hash table entries: 4096 (order: 3, 49152 bytes) TCP: Hash tables configured (established 4096 bind 4096) Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 156k freed I am not getting a console here........to communicate with my new machine on issuing xm list i see the two domains listed [root@localhost ~]# xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 891 0 r---- 26.1 VM1 1 64 0 ----- 760.1 9601 **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I am new to virtualization and even newer to Linux.Welcome to the crowd, in both cases. Lots of new users are put off Linux because they have strange hardware that the drivers don''t like and they feel too overwhelmed to do the actions needed (sometimes simple, sometimes harder) to make it work. I wish you luck in your explorations.> The FAQ and documentation for Xen seem to presume a certain level of > prior low-level Linux and/or Xen knowledge. (None of which I have...)Well, everyone tries their best to make it as easy to read as possible, but no easier. Xen is targetted at people who are comfortable recompiling kernels and setting up new hard disk partitions, and the documentation reflects this. With the increasing availability of Xen packages in distributions[1] this is starting to change, and we will have to keep editing the docs to reflect this, but at the moment you will find it quite hard to set up without prior knowledge of what goes on inside your Linux system.> Can someone help answer up a few questions for me?I can try.> -- In the VWware world, each domain has the full illusion a system to > it''s self. I get the idea that this is not the case in Xen, but how > can this be while still enforcing the integrity of each domain?You are correct. Each domain in Xen realises that it doesn''t own the computer, but it can''t access the whole computer, just as a user process in a modern operating system is only allowed to write to its own memory and not that of other processes. Xen does clever things with page tables to ensure that each domain can only see its own memory: this provides the speed benefit that only page table updates need to be verified by the hypervisor (unlike in fully virtualized systems where each memory access must be checked), but allows the same degree of protection.> -- In the VWware world, I/O (Disk, Network, HID, VGA, etc..) is > handled by "virtual hardware devices" that can be assigned to each > domain at will, and are in turn somehow securely mapped and shared to > their real world counterparts. Is this the case in Xen?It is partially the case. Disk and network are virtualized by two-part drivers. The ''frontend'' driver sits in the user domain and pretends to be a normal driver, but instead of talking to hardware, it talks to the ''backend'' driver, which sits in domain 0 or a special ''driver domain'' and relays instructions to the hardware. We hope to add high-performance paravirtualization of graphics hardware in the future, but it is hard.> -- In the VWware ESX server product, identical memory pages among > similar domains can be transparently consolidated to free up more > physical RAM for the domains to use. Is this also the case in Xen?I''m not sure, but AFAIK it is not. Xen is designed with hosting companies in mind. They want to charge users for the amount of memory (etc.) they use, and sharing the memory like that would make that much harder. It would also cause problems when domains wish to make changes to transparently shared pages if there is not enough free memory to copy them apart. I hope I have been some help. Daniel 1] http://wiki.xensource.com/xenwiki/DistributionSupport -- Stop the infinite loop, I want to get off! http://surreal.istic.org/ Paraphernalia/Never hides your broken bones,/ And I don''t know why you''d want to try:/ It''s plain to see you''re on your own. -- Paul Simon The documentation that can be written is not the true documentation. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > -- In the VWware world, I/O (Disk, Network, HID, VGA, etc..) is > > handled by "virtual hardware devices"> We hope to add high-performance paravirtualization of graphics > hardware in the future, but it is hard.I forgot to mention that until then, if you want graphics output from a user domain, you should use Xvnc. It runs X without graphics hardware, opening up a VNC server so you can get at it from domain 0 (which can give you a real X display) or another host. The Xen 2.0.6 demo CD [2] uses this technique. 2] http://www.xensource.com/downloads/ -- Stop the infinite loop, I want to get off! http://surreal.istic.org/ Paraphernalia/Never hides your broken bones,/ And I don''t know why you''d want to try:/ It''s plain to see you''re on your own. -- Paul Simon The documentation that can be written is not the true documentation. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am running on a 2.6.12 xen0 FC4 build kernel, this is my first day with xen and : I am trying to run a simple ttylinux as a domU ( from sf.net/xen ) /etc/xen/ttyconf looks like what the Xen 2.0 documentation suggests kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 64 name = "ttylinux" nics=1ip="1.2.3.4" disk=[''file:/tftpboot,sda1,w''] .................#the Xen doc says /path/to/ttylinux/rootfs root="/dev/sda1 ro" [root@localhost tftpboot]# xm create ttyconf1 -c vmid=2 Using config file "/etc/xen/ttyconf1". Error: Error creating domain: vbd: Segment not found: uname=file:/tftpboot i untarred the ttylinux.bz2 in the empty tftpboot directory (not for any particular reason) [root@localhost ~]# ls /tftpboot bin dev etc init lib linux-install loopfs proc sbin sys sysroot ttylinux what is that i need to change ..the domU is from an FC4 Rpm and i have not been able to run from a physical device as root fs either ,the kernel starts booting and stops at freeing unused memory..156K..which from the FAQ i saw was related to initrd could not fix it that way.....so just waiting for help Digz **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > -- In the VWware ESX server product, identical memory pages among > > similar domains can be transparently consolidated to free up more > > physical RAM for the domains to use. Is this also the case in Xen? > > I''m not sure, but AFAIK it is not. Xen is designed with hosting > companies in mind. They want to charge users for the amount of memory > (etc.) they use, and sharing the memory like that would make that much > harder. It would also cause problems when domains wish to make changes > to transparently shared pages if there is not enough free memory to copy > them apart.The Xen philosophy is to expose the real resources to domains, where possible. So you just allocate memory to a domain and say "This is how much RAM you have, please do all your own swapping". For greater flexibility you can also change domain memory allocations at runtime as the workloads in the domains change. A number of people are looking at new ways to implement sharing on Xen: one group is trying to run thousands of virtual machines on one system (by sharing *loads* of memory!), meanwhile with XenFS I''m trying to share the memory taken up by disk IO. Cheers, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I am trying to run a simple ttylinux as a domU > ( from sf.net/xen )OK.> /etc/xen/ttyconf looks like what the Xen 2.0 documentation > suggests > > kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > memory = 64 > name = "ttylinux" > nics=1ip="1.2.3.4" > disk=[''file:/tftpboot,sda1,w''] .................#the Xen doc > says /path/to/ttylinux/rootfs > root="/dev/sda1 ro" > > [root@localhost tftpboot]# xm create ttyconf1 -c vmid=2 > Using config file "/etc/xen/ttyconf1". > Error: Error creating domain: vbd: Segment not found: > uname=file:/tftpboot > > i untarred the ttylinux.bz2 in the empty tftpboot directory (not > for any particular reason) > [root@localhost ~]# ls /tftpboot > bin dev etc init lib linux-install loopfs proc sbin sys > sysroot ttylinuxAre you sure the tftpboot directory was empty? ttylinux.bz2 is not a tar file, just a compressed file - all it should have left behind it the file "ttylinux". I don''t know where the other directories came from :-) The file: directive needs to point to the disk file itself, not to a directory. Could you please try: disk=[''file:/tftpboot/ttylinux,sda1,w''] Let us know how you get on! Cheers, Mark> what is that i need to change ..the domU is from an FC4 Rpm and > i have not been able to run from a physical device as root fs > either ,the kernel starts booting and stops at freeing unused > memory..156K..which from the FAQ i saw was related to initrd > could not fix it that way.....so just waiting for help > > Digz > > > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the original > message. Further, you are not to copy, disclose, or distribute this e-mail > or its contents to any other person and any such actions are unlawful. This > e-mail may contain viruses. Infosys has taken every reasonable precaution > to minimize this risk, but is not liable for any damage you may sustain as > a result of any virus in this e-mail. You should carry out your own virus > checks before opening the e-mail or attachment. Infosys reserves the right > to monitor and review the content of all messages sent to or from this > e-mail address. Messages sent to or from this e-mail address may be stored > on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer > ********INFOSYS***_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Mark ,but still couldnt get thro'' this is what i did [root@localhost Desktop]# bzcat ttylinux-xen.bz2 >ttylinux [root@localhost Desktop]# rm -rf /tftpboot/ [root@localhost Desktop]# cp ttylinux tftpboot/ My stripped conf file looks like this: kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 64 name = "ttylinux1" nics = 1 ip = "1.2.3.4" disk = [''file:/tftpboot/ttylinux,sda1,w''] root = "/dev/sda1 ro" I dont have a /dev/sda1 partition in my harddisk (the only partition which is is a root partition is /dev/hda6 which holds the FC4 install I am using as dom0 , am i being dumb in not understanding that the root fs has to be a real partition having all the files or /dev/sda1 will do ???..please explain the difference between disk and root.. when i say: [root@localhost ~]# xm create ttyconf1 -c Using config file "/etc/xen/ttyconf1". Started domain ttylinux1, console on port 9616 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Linux version 2.6.11-1.1369_FC4xenU (bhcompile@decompose.build.redhat.com) (gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 SMP Thu Jun 2 23:33:51 EDT 2005 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000004000000 (usable) 64MB LOWMEM available. Using x86 segment limits to approximate NX protection DMI not present. IRQ lockup detection disabled Allocating PCI resources starting at 04000000 (gap: 04000000:fc000000) Built 1 zonelists Kernel command line: ip=1.2.3.4:1.2.3.4::::eth0:off root=/dev/sda1 ro Initializing CPU#0 PID hash table entries: 1024 (order: 10, 16384 bytes) Xen reported: 2258.351 MHz processor. Using tsc for high-res timesource Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 60800k/65536k available (1785k kernel code, 4648k reserved, 506k data, 156k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Security Framework v1.0.0 initialized SELinux: Initializing. SELinux: Starting in permissive mode selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary Mount-cache hash table entries: 512 CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 512K Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking ''hlt'' instruction... disabled CPU0: Intel(R) Pentium(R) 4 CPU 2.26GHz stepping 07 per-CPU timeslice cutoff: 1462.80 usecs. task migration cache decay timeout: 2 msecs. SMP motherboard not detected. smpboot_clear_io_apic_irqs Brought up 1 CPUs softlockup thread 0 started up. NET: Registered protocol family 16 xen_mem: Initialising balloon driver. Grant table initialized audit: initializing netlink socket (disabled) audit(1123595064.572:1): initialized Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) SELinux: Registering netfilter hooks Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key 42BD35A990375F72 - User ID: Red Hat, Inc. (Kernel Module GPG key) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize Xen virtual console successfully installed as tty1 Event-channel device installed. Blkif frontend is using grant tables. xen_blk: Initialising virtual block device driver xen_net: Initialising virtual ethernet driver. md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 256 buckets, 4Kbytes TCP established hash table entries: 4096 (order: 4, 65536 bytes) TCP bind hash table entries: 4096 (order: 3, 49152 bytes) TCP: Hash tables configured (established 4096 bind 4096) Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 156k freed Inconsistency detected by ld.so: rtld.c: 1180: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso PERHAPS I AM AGAIN MAKING A MISTAKE thanks and regards Digz =====================================================================================> > I am trying to run a simple ttylinux as a domU > > ( from sf.net/xen ) > > OK. > > > /etc/xen/ttyconf looks like what the Xen 2.0 documentation > > suggests > > > > kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > > memory = 64 > > name = "ttylinux" > > nics=1ip="1.2.3.4" > > disk=[''file:/tftpboot,sda1,w''] .................#the Xen doc > > says /path/to/ttylinux/rootfs > > root="/dev/sda1 ro" > > > > [root@localhost tftpboot]# xm create ttyconf1 -c vmid=2 > > Using config file "/etc/xen/ttyconf1". > > Error: Error creating domain: vbd: Segment not found: > > uname=file:/tftpboot > > > > i untarred the ttylinux.bz2 in the empty tftpboot directory (not > > for any particular reason) > > [root@localhost ~]# ls /tftpboot > > bin dev etc init lib linux-install loopfs proc sbin sys > > sysroot ttylinux > > Are you sure the tftpboot directory was empty? ttylinux.bz2 is not a tar > file, just a compressed file - all it should have left behind it the file > "ttylinux". I don''t know where the other directories came from :-) > > The file: directive needs to point to the disk file itself, not to a > directory. Could you please try: > disk=[''file:/tftpboot/ttylinux,sda1,w''] > > Let us know how you get on! > > Cheers, > Mark > > > what is that i need to change ..the domU is from an FC4 Rpm and > > i have not been able to run from a physical device as root fs > > either ,the kernel starts booting and stops at freeing unused > > memory..156K..which from the FAQ i saw was related to initrd > > could not fix it that way.....so just waiting for help > > > > Digz > > > > > > > > **************** CAUTION - Disclaimer ***************** > > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > > solely for the use of the addressee(s). If you are not the intended > > recipient, please notify the sender by e-mail and delete the original > > message. Further, you are not to copy, disclose, or distribute this > > e-mail or its contents to any other person and any such actions are > > unlawful. This e-mail may contain viruses. Infosys has taken every > > reasonable precaution to minimize this risk, but is not liable for any > > damage you may sustain as a result of any virus in this e-mail. You > > should carry out your own virus checks before opening the e-mail or > > attachment. Infosys reserves the right to monitor and review the content > > of all messages sent to or from this e-mail address. Messages sent to or > > from this e-mail address may be stored on the Infosys e-mail system. > > ***INFOSYS******** End of Disclaimer ********INFOSYS***_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Thanks to everyone for clearing up those questions. :-) OK, so I have a Pentium 4 machine with a few NICs and a couple of hard drives sitting here that I would like to turn into a Xen box. Where should I start? I need to first select a distribution of Linux, right? Clearly, I will need to learn a great deal about how modern computer hardware and operating systems work. Are there any Xen/Linux tutorials that I can follow that not only provide the steps, but also explain the "what" and "why"? I did read parts of the book "Code" by Charles Petzold a few years back, and so I still have *cloudy* recollection of how logic gates and such might be combined to do useful work. Though, that''s about it with regard to low-level knowledge. So, to summarize: Xen looks really cool. But were should I begin? -- David _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mark, > A number of people are looking at new ways to implement sharing on Xen: one> group is trying to run thousands of virtual machines on one system (by > sharing *loads* of memory!), meanwhile with XenFS I''m trying to share the > memory taken up by disk IO.Those sound like really interesting projects. I found http://wiki.xensource.com/xenwiki/XenFS , but where can I find info on the other project? Thanks, David _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Can any body comment on this Please :trying to run ttylinux as a domU with a vmlinuz-2.6.11-1.1369_FC4xenU kernel and vmlinuz-2.6.11-1.1369_FC4xen0 as the dom0 On Tuesday 09 August 2005 19:32, digz wrote:> Thanks Mark ,but still couldnt get thro'' > > this is what i did > [root@localhost Desktop]# bzcat ttylinux-xen.bz2 >ttylinux > [root@localhost Desktop]# rm -rf /tftpboot/ > [root@localhost Desktop]# cp ttylinux tftpboot/ > > > My stripped conf file looks like this: > > kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > memory = 64 > name = "ttylinux1" > nics = 1 > ip = "1.2.3.4" > disk = [''file:/tftpboot/ttylinux,sda1,w''] > root = "/dev/sda1 ro" > > I dont have a /dev/sda1 partition in my harddisk (the only partition which > is is a root partition is /dev/hda6 which holds the FC4 install I am using > as dom0 , am i being dumb in not understanding that the root fs has to be a > real partition having all the files or /dev/sda1 will do ???..please > explain the difference between disk and root.. > > > when i say: > [root@localhost ~]# xm create ttyconf1 -c > Using config file "/etc/xen/ttyconf1". > Started domain ttylinux1, console on port 9616 > ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** > Linux version 2.6.11-1.1369_FC4xenU (bhcompile@decompose.build.redhat.com) > (gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 SMP Thu Jun 2 23:33:51 > EDT 2005 > BIOS-provided physical RAM map: > Xen: 0000000000000000 - 0000000004000000 (usable) > 64MB LOWMEM available. > Using x86 segment limits to approximate NX protection > DMI not present. > IRQ lockup detection disabled > Allocating PCI resources starting at 04000000 (gap: 04000000:fc000000) > Built 1 zonelists > Kernel command line: ip=1.2.3.4:1.2.3.4::::eth0:off root=/dev/sda1 ro > Initializing CPU#0 > PID hash table entries: 1024 (order: 10, 16384 bytes) > Xen reported: 2258.351 MHz processor. > Using tsc for high-res timesource > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) > Memory: 60800k/65536k available (1785k kernel code, 4648k reserved, 506k > data, 156k init, 0k highmem) > Checking if this processor honours the WP bit even in supervisor mode... > Ok. Security Framework v1.0.0 initialized > SELinux: Initializing. > SELinux: Starting in permissive mode > selinux_register_security: Registering secondary module capability > Capability LSM initialized as secondary > Mount-cache hash table entries: 512 > CPU: Trace cache: 12K uops, L1 D cache: 8K > CPU: L2 cache: 512K > Enabling fast FPU save and restore... done. > Enabling unmasked SIMD FPU exception support... done. > Checking ''hlt'' instruction... disabled > CPU0: Intel(R) Pentium(R) 4 CPU 2.26GHz stepping 07 > per-CPU timeslice cutoff: 1462.80 usecs. > task migration cache decay timeout: 2 msecs. > SMP motherboard not detected. > smpboot_clear_io_apic_irqs > Brought up 1 CPUs > softlockup thread 0 started up. > NET: Registered protocol family 16 > xen_mem: Initialising balloon driver. > Grant table initialized > audit: initializing netlink socket (disabled) > audit(1123595064.572:1): initialized > Total HugeTLB memory allocated, 0 > VFS: Disk quotas dquot_6.5.1 > Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) > SELinux: Registering netfilter hooks > Initializing Cryptographic API > ksign: Installing public key data > Loading keyring > - Added public key 42BD35A990375F72 > - User ID: Red Hat, Inc. (Kernel Module GPG key) > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered > RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize > Xen virtual console successfully installed as tty1 > Event-channel device installed. > Blkif frontend is using grant tables. > xen_blk: Initialising virtual block device driver > xen_net: Initialising virtual ethernet driver. > md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 > NET: Registered protocol family 2 > IP: routing cache hash table of 256 buckets, 4Kbytes > TCP established hash table entries: 4096 (order: 4, 65536 bytes) > TCP bind hash table entries: 4096 (order: 3, 49152 bytes) > TCP: Hash tables configured (established 4096 bind 4096) > Initializing IPsec netlink socket > NET: Registered protocol family 1 > NET: Registered protocol family 17 > md: Autodetecting RAID arrays. > md: autorun ... > md: ... autorun DONE. > kjournald starting. Commit interval 5 seconds > EXT3-fs: mounted filesystem with ordered data mode. > VFS: Mounted root (ext3 filesystem) readonly. > Freeing unused kernel memory: 156k freed > Inconsistency detected by ld.so: rtld.c: 1180: dl_main: Assertion `(void *) > ph->p_vaddr == _rtld_local._dl_sysinfo_dso > > PERHAPS I AM AGAIN MAKING A MISTAKE > thanks and regards > Digz > ==========================================================================>==========> > > > I am trying to run a simple ttylinux as a domU > > > ( from sf.net/xen ) > > > > OK. > > > > > /etc/xen/ttyconf looks like what the Xen 2.0 documentation > > > suggests > > > > > > kernel = "/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > > > memory = 64 > > > name = "ttylinux" > > > nics=1ip="1.2.3.4" > > > disk=[''file:/tftpboot,sda1,w''] .................#the Xen doc > > > says /path/to/ttylinux/rootfs > > > root="/dev/sda1 ro" > > > > > > [root@localhost tftpboot]# xm create ttyconf1 -c vmid=2 > > > Using config file "/etc/xen/ttyconf1". > > > Error: Error creating domain: vbd: Segment not found: > > > uname=file:/tftpboot > > > > > > i untarred the ttylinux.bz2 in the empty tftpboot directory > > > (not for any particular reason) > > > [root@localhost ~]# ls /tftpboot > > > bin dev etc init lib linux-install loopfs proc sbin > > > sys sysroot ttylinux > > > > Are you sure the tftpboot directory was empty? ttylinux.bz2 is not a tar > > file, just a compressed file - all it should have left behind it the file > > "ttylinux". I don''t know where the other directories came from :-) > > > > The file: directive needs to point to the disk file itself, not to a > > directory. Could you please try: > > disk=[''file:/tftpboot/ttylinux,sda1,w''] > > > > Let us know how you get on! > > > > Cheers, > > Mark > > > > > what is that i need to change ..the domU is from an FC4 Rpm and > > > i have not been able to run from a physical device as root fs > > > either ,the kernel starts booting and stops at freeing unused > > > memory..156K..which from the FAQ i saw was related to initrd > > > could not fix it that way.....so just waiting for help > > > > > > Digz > > > > > > > > > > > > **************** CAUTION - Disclaimer ***************** > > > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > > > solely for the use of the addressee(s). If you are not the intended > > > recipient, please notify the sender by e-mail and delete the original > > > message. Further, you are not to copy, disclose, or distribute this > > > e-mail or its contents to any other person and any such actions are > > > unlawful. This e-mail may contain viruses. Infosys has taken every > > > reasonable precaution to minimize this risk, but is not liable for any > > > damage you may sustain as a result of any virus in this e-mail. You > > > should carry out your own virus checks before opening the e-mail or > > > attachment. Infosys reserves the right to monitor and review the > > > content of all messages sent to or from this e-mail address. Messages > > > sent to or from this e-mail address may be stored on the Infosys e-mail > > > system. ***INFOSYS******** End of Disclaimer ********INFOSYS***_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users