E
E
ExtraQuality2014-02-17 21:13:18
virtual box
ExtraQuality, 2014-02-17 21:13:18

How to create a working server image on Ubuntu?

Only an important condition. It is necessary that when opening this image, a working server is deployed, which would be given to the localhost.
I assume that for this you will need to run it as a virtual machine, but how to build it so that you can run it like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-02-17
@ExtraQuality

Don't look that way.
Make a system archive:
Create a virtual machine, copy the /chroot directory to it
Mount the necessary virtual file systems - write to /etc/fstab:

udev /chroot/dev devtmpfs rw,relatime,size=10240k,nr_inodes=4112034,mode=755 0 0
devpts /chroot/dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
sysfs /chroot/sys sysfs rw,relatime 0 0
proc /chroot/proc proc rw,relatime 0 0
none /chroot/run/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0

Then:
mount -a
Then log into this snapshot of the system:
chroot /chroot
And start all the necessary services.
Dancing with network-hostname-etc settings every time is quite a tedious act. So faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question