Remove VMWare from code base
This commit is contained in:
@@ -129,8 +129,6 @@ chcon -u system_u -r object_r -t modules_conf_t /etc/modprobe.d/nofloppy.conf
|
|||||||
|
|
||||||
# Customize the initramfs
|
# Customize the initramfs
|
||||||
pushd /etc/dracut.conf.d
|
pushd /etc/dracut.conf.d
|
||||||
# Enable VMware PVSCSI support for VMware Fusion guests.
|
|
||||||
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
|
|
||||||
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
||||||
# There's no floppy controller, but probing for it generates timeouts
|
# There's no floppy controller, but probing for it generates timeouts
|
||||||
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
||||||
@@ -138,7 +136,6 @@ popd
|
|||||||
# Fix the SELinux context of the new files
|
# Fix the SELinux context of the new files
|
||||||
restorecon -f - <<EOF
|
restorecon -f - <<EOF
|
||||||
/etc/sudoers.d/vagrant
|
/etc/sudoers.d/vagrant
|
||||||
/etc/dracut.conf.d/vmware-fusion-drivers.conf
|
|
||||||
/etc/dracut.conf.d/hyperv-drivers.conf
|
/etc/dracut.conf.d/hyperv-drivers.conf
|
||||||
/etc/dracut.conf.d/nofloppy.conf
|
/etc/dracut.conf.d/nofloppy.conf
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -129,8 +129,6 @@ chcon -u system_u -r object_r -t modules_conf_t /etc/modprobe.d/nofloppy.conf
|
|||||||
|
|
||||||
# Customize the initramfs
|
# Customize the initramfs
|
||||||
pushd /etc/dracut.conf.d
|
pushd /etc/dracut.conf.d
|
||||||
# Enable VMware PVSCSI support for VMware Fusion guests.
|
|
||||||
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
|
|
||||||
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
||||||
# There's no floppy controller, but probing for it generates timeouts
|
# There's no floppy controller, but probing for it generates timeouts
|
||||||
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
||||||
@@ -138,7 +136,6 @@ popd
|
|||||||
# Fix the SELinux context of the new files
|
# Fix the SELinux context of the new files
|
||||||
restorecon -f - <<EOF
|
restorecon -f - <<EOF
|
||||||
/etc/sudoers.d/vagrant
|
/etc/sudoers.d/vagrant
|
||||||
/etc/dracut.conf.d/vmware-fusion-drivers.conf
|
|
||||||
/etc/dracut.conf.d/hyperv-drivers.conf
|
/etc/dracut.conf.d/hyperv-drivers.conf
|
||||||
/etc/dracut.conf.d/nofloppy.conf
|
/etc/dracut.conf.d/nofloppy.conf
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -129,8 +129,6 @@ chcon -u system_u -r object_r -t modules_conf_t /etc/modprobe.d/nofloppy.conf
|
|||||||
|
|
||||||
# Customize the initramfs
|
# Customize the initramfs
|
||||||
pushd /etc/dracut.conf.d
|
pushd /etc/dracut.conf.d
|
||||||
# Enable VMware PVSCSI support for VMware Fusion guests.
|
|
||||||
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
|
|
||||||
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
||||||
# There's no floppy controller, but probing for it generates timeouts
|
# There's no floppy controller, but probing for it generates timeouts
|
||||||
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
||||||
@@ -138,7 +136,6 @@ popd
|
|||||||
# Fix the SELinux context of the new files
|
# Fix the SELinux context of the new files
|
||||||
restorecon -f - <<EOF
|
restorecon -f - <<EOF
|
||||||
/etc/sudoers.d/vagrant
|
/etc/sudoers.d/vagrant
|
||||||
/etc/dracut.conf.d/vmware-fusion-drivers.conf
|
|
||||||
/etc/dracut.conf.d/hyperv-drivers.conf
|
/etc/dracut.conf.d/hyperv-drivers.conf
|
||||||
/etc/dracut.conf.d/nofloppy.conf
|
/etc/dracut.conf.d/nofloppy.conf
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.vmware.guest = {
|
|
||||||
enable = true;
|
|
||||||
headless = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.vmware.guest = {
|
|
||||||
enable = true;
|
|
||||||
headless = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.vmware.guest = {
|
|
||||||
enable = true;
|
|
||||||
headless = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.vmware.guest = {
|
|
||||||
enable = true;
|
|
||||||
headless = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
virtualisation.vmware.guest = {
|
|
||||||
enable = true;
|
|
||||||
headless = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -123,8 +123,6 @@ chcon -u system_u -r object_r -t modules_conf_t /etc/modprobe.d/nofloppy.conf
|
|||||||
|
|
||||||
# Customize the initramfs
|
# Customize the initramfs
|
||||||
pushd /etc/dracut.conf.d
|
pushd /etc/dracut.conf.d
|
||||||
# Enable VMware PVSCSI support for VMware Fusion guests.
|
|
||||||
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
|
|
||||||
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
||||||
# There's no floppy controller, but probing for it generates timeouts
|
# There's no floppy controller, but probing for it generates timeouts
|
||||||
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
||||||
@@ -132,7 +130,6 @@ popd
|
|||||||
# Fix the SELinux context of the new files
|
# Fix the SELinux context of the new files
|
||||||
restorecon -f - <<EOF
|
restorecon -f - <<EOF
|
||||||
/etc/sudoers.d/vagrant
|
/etc/sudoers.d/vagrant
|
||||||
/etc/dracut.conf.d/vmware-fusion-drivers.conf
|
|
||||||
/etc/dracut.conf.d/hyperv-drivers.conf
|
/etc/dracut.conf.d/hyperv-drivers.conf
|
||||||
/etc/dracut.conf.d/nofloppy.conf
|
/etc/dracut.conf.d/nofloppy.conf
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -123,8 +123,6 @@ chcon -u system_u -r object_r -t modules_conf_t /etc/modprobe.d/nofloppy.conf
|
|||||||
|
|
||||||
# Customize the initramfs
|
# Customize the initramfs
|
||||||
pushd /etc/dracut.conf.d
|
pushd /etc/dracut.conf.d
|
||||||
# Enable VMware PVSCSI support for VMware Fusion guests.
|
|
||||||
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
|
|
||||||
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
|
||||||
# There's no floppy controller, but probing for it generates timeouts
|
# There's no floppy controller, but probing for it generates timeouts
|
||||||
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
echo 'omit_drivers+=" floppy "' > nofloppy.conf
|
||||||
@@ -132,7 +130,6 @@ popd
|
|||||||
# Fix the SELinux context of the new files
|
# Fix the SELinux context of the new files
|
||||||
restorecon -f - <<EOF
|
restorecon -f - <<EOF
|
||||||
/etc/sudoers.d/vagrant
|
/etc/sudoers.d/vagrant
|
||||||
/etc/dracut.conf.d/vmware-fusion-drivers.conf
|
|
||||||
/etc/dracut.conf.d/hyperv-drivers.conf
|
/etc/dracut.conf.d/hyperv-drivers.conf
|
||||||
/etc/dracut.conf.d/nofloppy.conf
|
/etc/dracut.conf.d/nofloppy.conf
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ packer {
|
|||||||
source = "github.com/hashicorp/vagrant"
|
source = "github.com/hashicorp/vagrant"
|
||||||
version = "= 1.1.6"
|
version = "= 1.1.6"
|
||||||
}
|
}
|
||||||
vmware = {
|
|
||||||
source = "github.com/hashicorp/vmware"
|
|
||||||
version = "= 1.0.11"
|
|
||||||
}
|
|
||||||
hyperv = {
|
hyperv = {
|
||||||
version = "= 1.1.4"
|
version = "= 1.1.4"
|
||||||
source = "github.com/hashicorp/hyperv"
|
source = "github.com/hashicorp/hyperv"
|
||||||
@@ -27,7 +23,6 @@ build {
|
|||||||
sources = [
|
sources = [
|
||||||
"source.qemu.amd64",
|
"source.qemu.amd64",
|
||||||
"source.virtualbox-iso.amd64",
|
"source.virtualbox-iso.amd64",
|
||||||
"source.vmware-iso.amd64",
|
|
||||||
"source.hyperv-iso.amd64"
|
"source.hyperv-iso.amd64"
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -42,11 +37,6 @@ build {
|
|||||||
only = ["virtualbox-iso.amd64"]
|
only = ["virtualbox-iso.amd64"]
|
||||||
script = "distros/${var.distro}/${var.version}/virtualbox.sh"
|
script = "distros/${var.distro}/${var.version}/virtualbox.sh"
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
|
||||||
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
|
|
||||||
only = ["vmware-iso.amd64"]
|
|
||||||
script = "distros/${var.distro}/${var.version}/vmware.sh"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Generic wrapping up the provisioner before packaging
|
# Generic wrapping up the provisioner before packaging
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
source "vmware-iso" "amd64" {
|
|
||||||
iso_url = var.iso.url
|
|
||||||
iso_target_path = "cache/${basename(var.iso.url)}"
|
|
||||||
iso_checksum = var.iso.checksum
|
|
||||||
output_directory = "output/vmware/${local.name}"
|
|
||||||
|
|
||||||
boot_command = var.boot_command
|
|
||||||
shutdown_command = var.shutdown_command
|
|
||||||
boot_wait = var.boot_wait
|
|
||||||
|
|
||||||
ssh_timeout = local.ssh.timeout
|
|
||||||
ssh_username = local.ssh.username
|
|
||||||
ssh_password = local.ssh.password
|
|
||||||
ssh_handshake_attempts = local.ssh.handshake_attempts
|
|
||||||
ssh_private_key_file = "vagrant/insecure_key"
|
|
||||||
|
|
||||||
vm_name = "packer-${local.name}"
|
|
||||||
disk_size = "${local.disk_size}000"
|
|
||||||
cpus = local.cpus
|
|
||||||
memory = local.memory
|
|
||||||
headless = var.headless
|
|
||||||
#guest_os_type = "Linux_64"
|
|
||||||
|
|
||||||
http_content = var.http_files
|
|
||||||
http_directory = var.http_directory
|
|
||||||
cd_content = var.cd_content
|
|
||||||
cd_files = var.cd_files
|
|
||||||
cd_label = var.cd_label
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,4 @@ Vagrant.configure('2') do |c|
|
|||||||
v.gui = false
|
v.gui = false
|
||||||
v.memory = 2048
|
v.memory = 2048
|
||||||
end
|
end
|
||||||
c.vm.provider :vmware_fusion do |v|
|
|
||||||
v.gui = false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,7 +9,4 @@ Vagrant.configure('2') do |c|
|
|||||||
c.vm.provider :virtualbox do |v|
|
c.vm.provider :virtualbox do |v|
|
||||||
v.gui = false
|
v.gui = false
|
||||||
end
|
end
|
||||||
c.vm.provider :vmware_fusion do |v|
|
|
||||||
v.gui = false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user