os.getuid()
which returns the current user id./etc/passwd
for clues./etc/passwd
does not exist inside your chroot jail. Either you can try mapping it in, or you can set the HOME
environment variable to something sensible, as the code for expanduser
says:Import Type | Description |
Register the virtual machine in-place | The current location of the Export files is where the virtual machine will be run from. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, If the virtual machine is already registered with Hyper-V it needs to be deleted before the import will work. When the import has completed, the export files become the running state files and cannot be removed. |
Restore the virtual machine | You are given an option to store the VM files in a specific location or use the locations default to Hyper-V. This import type creates a copy of the exported file and moves them to the selected location. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, if the virtual machine is already running in Hyper-V it needs to be deleted before the import can be completed. When the import has completed the exported files remain untouched and can be removed and / or imported again. |
Copy the virtual machine | This import type is similar to the Restore type in that you select a location for the VM files. The difference is that when imported the virtual machine has a new unique ID. This allows for the Virtual Machine to be imported into the same host multiple time. |