|
|
@ -69,19 +69,13 @@ The alternative is to kill the unshare process, possibly using SIGKILL |
|
|
|
3. if $VM has NFS, then move that NFS tree manually |
|
|
|
==== |
|
|
|
|
|
|
|
.Entering a VM |
|
|
|
.Entering a qemu VM |
|
|
|
==== |
|
|
|
1. node# +ssh $VM+ |
|
|
|
+ |
|
|
|
The VMs are set up with ssh key for root's direct access. |
|
|
|
|
|
|
|
2. host# +nsenter -t $(pidof unshare) -m -p chroot |
|
|
|
/run/subhost/$VM/live /bin/bash+ |
|
|
|
+ |
|
|
|
This starts a bash shell within the live root filesystem of the |
|
|
|
subhost $VM. |
|
|
|
|
|
|
|
3. master# +gnt-instance console $VM+ |
|
|
|
2. master# +gnt-instance console $VM+ |
|
|
|
+ |
|
|
|
Serial console access is enabled for some qemu VM, by means of an |
|
|
|
/etc/inittab line like: |
|
|
@ -90,3 +84,22 @@ T0:23:respawn:/sbin/getty 115200 ttyS0 |
|
|
|
---- |
|
|
|
This is not available for subhost $VM (lacks console). |
|
|
|
==== |
|
|
|
|
|
|
|
.Entering a subhost VM |
|
|
|
==== |
|
|
|
1. node# +ssh $VM+ |
|
|
|
+ |
|
|
|
The VMs are set up with ssh key for root's direct access. |
|
|
|
|
|
|
|
2. host# +nsenter -t $(pidof unshare) -m -p chroot |
|
|
|
/run/subhost/$VM/live /bin/bash+ |
|
|
|
+ |
|
|
|
This starts a bash shell within the live root filesystem of the |
|
|
|
subhost $VM. |
|
|
|
|
|
|
|
3. like 2, but including +ip netns exec $VM+ just before +chroot+ |
|
|
|
+ |
|
|
|
This also enters the nework namespace, for using its networking. |
|
|
|
|
|
|
|
Serial console is not available for subhost $VM (lacks console). |
|
|
|
==== |
|
|
|