[Users] Bind mounts and/or additional disk volumes
I'm experimenting with using OpenVZ for shared-root guest VMs. Thus far I have managed to get most of it working using GFS for /vz/private. I can start up the same guest on two different hosts (both of which mount the same /vz/private GFS volume), and both guests come up fine without trashing the file system. The problem is that I also need each guest to have some private disk space, e.g. under /cdsl.local. I have tried to work around this by bind-mounting /vz/local to /vz/private/1/cdsl.local on the two hosts before starting the VMs. However - this doesn't appear to have the desired effect. The guests still see the GFS file system rather than the bind mount that was mounted there before the VM started. This would imply that the guest VM sees only the fs mounted under /vz/private/VMID, rather than the aggregate file systems that might be mounted there. Is this a bug, or is this intended behaviour? Further, since bind-mounting such private volumes from the host doesn't seem to work, how do I add a private disk volume of some description inside the guest? Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Can you please tell, why it was rejected or not accepted upstream? On 29.12.2009 / 10:17:08 +0100, Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 08:30 To: users@openvz.org Subject: [Users] Seeing Boot Progress for Guest VM Is there a way to observe the VM console / boot-up screen (e.g. for errors/warnings)? I know I can vzctl enter ID a VM, but that doesn't let me actually see the progress of init and the services it is starting up while it's booting up. Is there a way to do this? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Bind mounts and/or additional disk volumes
Christian Hofstaedtler wrote: * Gordan Bobic gor...@bobich.net [091229 10:05]: I'm experimenting with using OpenVZ for shared-root guest VMs. Thus far I have managed to get most of it working using GFS for /vz/private. I can start up the same guest on two different hosts (both of which mount the same /vz/private GFS volume), and both guests come up fine without trashing the file system. [..] Further, since bind-mounting such private volumes from the host doesn't seem to work, how do I add a private disk volume of some description inside the guest? private is the storage area for the VE's root-fs. You need to mount into root instead, which in itself is a hidden bind mount which is only available as long as the VE is mounted. I'm not entirely sure I follow what you mean. Can you please elaborate? How do I mount things into root? You can use the mount and umount VE scripts to do your work. Can you provide an example or a link to the relevant docs or wiki page? Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. Is this the most up to date version? http://www.mail-archive.com/users@openvz.org/msg02191.html Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Seeing Boot Progress for Guest VM
-Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Anatoly Pugachev Sent: Dienstag, 29. Dezember 2009 10:33 To: Dietmar Maurer Cc: users@openvz.org Subject: Re: [Users] Seeing Boot Progress for Guest VM Can you please tell, why it was rejected or not accepted upstream? I don't know why it was not accepted - sorry. On 29.12.2009 / 10:17:08 +0100, Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 08:30 To: users@openvz.org Subject: [Users] Seeing Boot Progress for Guest VM Is there a way to observe the VM console / boot-up screen (e.g. for errors/warnings)? I know I can vzctl enter ID a VM, but that doesn't let me actually see the progress of init and the services it is starting up while it's booting up. Is there a way to do this? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Bind mounts and/or additional disk volumes
The root area is at: /var/lib/vz/root/$VEID This point exists only if container is running. Yo can create mount/umount scripts too: http://wiki.openvz.org/Bind_mounts Greetings. El 29/12/2009, a las 11:00, Gordan Bobic escribió: Christian Hofstaedtler wrote: * Gordan Bobic gor...@bobich.net [091229 10:05]: I'm experimenting with using OpenVZ for shared-root guest VMs. Thus far I have managed to get most of it working using GFS for /vz/private. I can start up the same guest on two different hosts (both of which mount the same /vz/private GFS volume), and both guests come up fine without trashing the file system. [..] Further, since bind-mounting such private volumes from the host doesn't seem to work, how do I add a private disk volume of some description inside the guest? private is the storage area for the VE's root-fs. You need to mount into root instead, which in itself is a hidden bind mount which is only available as long as the VE is mounted. I'm not entirely sure I follow what you mean. Can you please elaborate? How do I mount things into root? You can use the mount and umount VE scripts to do your work. Can you provide an example or a link to the relevant docs or wiki page? Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Dietmar Maurer wrote: You can find the current sources at: ftp://pve.proxmox.com/sources/vzctl_2009-12-22.tar.gz Thanks, I got it built with the patches in there, but how is it used? Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
I just built this into an rpm package and it builds fine (after adding the line to the spec file for init-logger), but at run-time it looks for init-logger in /usr/lib instead of /usr/lib64. Is there a way to fix that? Other than moving it? Gordan Dietmar Maurer wrote: The output of init is written to /var/log/init.log (inside the container). To access it from the host specify the full path: # cat /var/lib/vz/private/CTID/var/log/init.log - Dietmar -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 12:32 To: users@openvz.org Subject: Re: [Users] Seeing Boot Progress for Guest VM Dietmar Maurer wrote: You can find the current sources at: ftp://pve.proxmox.com/sources/vzctl_2009-12-22.tar.gz Thanks, I got it built with the patches in there, but how is it used? Gordan ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Greetings, Kir, are you reading this? If so, can you state why this patch has been rejected? Any chance we can get it added to mainline vzctl? - Dietmar Maurer diet...@proxmox.com wrote: You can find the current sources at: ftp://pve.proxmox.com/sources/vzctl_2009-12-22.tar.gz -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 11:04 To: users@openvz.org Subject: Re: [Users] Seeing Boot Progress for Guest VM Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. Is this the most up to date version? http://www.mail-archive.com/users@openvz.org/msg02191.html ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users -- Scott Dowdle 704 Church Street Belgrade, MT 59714 (406)388-0827 [home] (406)994-3931 [work] ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Hi Dietmar, ... have you send the patch to bugzilla ...? Bye, Thorsten Scott Dowdle schrieb: Greetings, Kir, are you reading this? If so, can you state why this patch has been rejected? Any chance we can get it added to mainline vzctl? - Dietmar Maurer diet...@proxmox.com wrote: You can find the current sources at: ftp://pve.proxmox.com/sources/vzctl_2009-12-22.tar.gz -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 11:04 To: users@openvz.org Subject: Re: [Users] Seeing Boot Progress for Guest VM Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. Is this the most up to date version? http://www.mail-archive.com/users@openvz.org/msg02191.html ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users