KVM/ESX base image - missing files? [resolved]

2 posts / 0 new
Last post
#1 Fri, 2014-11-07 20:01
hrtendrup
  • hrtendrup's picture
  • Offline
  • Last seen: 3 years 4 months ago
  • Joined: 2014-11-07

Hello. I am trying to set up a base image that I can use as an option for others to copy and deploy as a VM. As such, I would like there to be no interface/hostname/dns/etc. configurations already in place.

I booted the iso in a VM with a blank hdd image. I ran setup-disk and selected the hdd dev and a sys type install. Then, I booted the VM from the hdd. That worked great.

The problem I'm running into now is when I run certain setup- scripts, it seems some source files of information are missing. For example, if I try to run setup-apkrepos, the list of repositories is missing:

localhost:~# setup-apkrepos
r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositores with text editor
 
Enter mirror number (1-0) or URL to add (or r/f/e/done) [f]: 

or if I try to configure the sshd server:

localhost:~# setup-sshd
Which SSH server? ('openssh', 'dropbear' or 'none') [openssh] 
ERROR: unsatisfiable constraints:
  .setup-apkrepos (missing):
    required by: world[.setup-apkrepos]
  openssh (missing):
   required by: world[openssh]
 * rc-update: service 'sshd' does not exist
 * rc-service: service 'sshd' does not exist

I get similar types of errors when I do setup-keymap, setup-timezone, etc

Is this something that should have transferred over during the disk install? Should I just manually edit the /etc/apk/repositores file?

Thanks for your help!! Seems like a great project/distro so far!

Fri, 2014-11-07 21:35
hrtendrup
  • hrtendrup's picture
  • Offline
  • Last seen: 3 years 4 months ago
  • Joined: 2014-11-07

ok, after a bit more research I came up with asolution that works for me

1. mount the install media / iso (/etc/fstab specifies mount point and filesystem type):
mount /dev/cdrom

2. make a local dir for the packages included on the disk image:
mkdir -p /usr/local/share/apks/x86_64

3. copy the repository on the disk to the local repository:
cp /media/cdrom/apks/x86_64/* /usr/local/share/apks/x86_64

4. edit the /etc/apks/repositories file to reflect the new location (use vi if that makes more sense)

cd /usr/local/share/apks
  pwd >> /etc/apks/repositories

After that, the setup-* scripts work much better

Log in or register to post comments