HOWTO: Building Sabayon images using Packer

From Sabayon Wiki
Jump to: navigation, search

Building VMware images

Setting up a build environment using VMware Player

While we'll be installing the VMware Workstation in these instructions which is not free software, we only need the player and VIX components which are free to use so there's no need to purchase a workstation license.

  • Install app-emulation/vmware-workstation with USE="ovftool server vix" (currently without these use flags in entropy, built in SCR temporarily)
  • If using bash, env-update && source /etc/profile
  • Setup virtual networks
    • Copy the following into /etc/vmware/networking
      File: /etc/vmware/networking
VERSION=1,0
answer VNET_1_DHCP yes
answer VNET_1_DHCP_CFG_HASH BA0A2ADB438F4A390ADE7333633E4AA8C00B897A
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 192.168.93.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_8_DHCP yes
answer VNET_8_DHCP_CFG_HASH F80579270B94AB020609BA2500257CA9B04050DD
answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
answer VNET_8_HOSTONLY_SUBNET 192.168.94.0
answer VNET_8_NAT yes
answer VNET_8_VIRTUAL_ADAPTER yes

Building the image

Retrieved from "https://wiki.sabayon.org/index.php?title=HOWTO:_Building_Sabayon_images_using_Packer&oldid=22700"