Hallo Zusammen, hat jemand schon einmal eine HyperV VM mit Empirum aufgesetzt und kann mir sagen mit welchem Kernel und welchen Einstellungen?
Bei mir bleibt die VM direkt am Anfang beim Boot Server hängen. Getestet mit Kernel 4.52, 4.60 und 464.
Mit den 3er Kernel komme ich ein wenig weiter, bootet dann aber und fängt wieder von vorne an
Hyper V aufsetzen - bleibt beim Boot Server hängen
Moderator: jknoth
-
- Posts: 709
- Joined: 07. May 2009, 18:27
- Location: Burscheid
- Contact:
Re: Hyper V aufsetzen - bleibt beim Boot Server hängen
Hallo,
ich habe den selben Fehler.
TFTP zieht eine millisekunde an, dann ist Ende.
Egal welches EPE man verwendet.
Konntest du es schon lösen?
Grüße
Tom
ich habe den selben Fehler.
TFTP zieht eine millisekunde an, dann ist Ende.
Egal welches EPE man verwendet.
Konntest du es schon lösen?
Grüße
Tom
-
- Posts: 521
- Joined: 06. Apr 2006, 22:01
- Location: Bochum
- Contact:
Re: Hyper V aufsetzen - bleibt beim Boot Server hängen
Moin!
Bei mir läuft das unter Windows 10 Hyper-V 1709 durch, leider steht nach der OS Installation "NOMAC" als MAC-Addresse dann drin.
EPE464
Generation 2
keine Secureboot
Bei mir läuft das unter Windows 10 Hyper-V 1709 durch, leider steht nach der OS Installation "NOMAC" als MAC-Addresse dann drin.
EPE464
Generation 2
keine Secureboot
Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Re: Hyper V aufsetzen - bleibt beim Boot Server hängen
Hallo,
wir erzeugen mit diesem PS die Virtuellen Maschinen.(Übernahme von der Mac Adresse von einer "alten Virtualbox VM"
Bei W10 ist der Secureboot möglich.
Falls keine mac gefunden worden ist,tragen wir diese ein.
Das Boottemplate ist im Anhang.
Die grup.cfg ist.
LG
Lars
wir erzeugen mit diesem PS die Virtuellen Maschinen.(Übernahme von der Mac Adresse von einer "alten Virtualbox VM"
Code: Select all
$VMpath=$false
# Check Old Installation
$lwd='D:\Virtual_Maschines'
$lwc='C:\Virtual_Maschines'
$checklwd= Test-Path -Path $lwd -ErrorAction SilentlyContinue
$checklwc= Test-Path -Path $lwc -ErrorAction SilentlyContinue
# Both Paths found - Ask User
if($checklwd -eq $true -and $checklwc -eq $true)
{
Write-host 'Es wurde auf Laufwerk C und D ein Ordner gefunden, welcher ist der aktuelle (C oder D eingeben und Enter drücken) ?' -ForegroundColor Yellow
$askuser=Read-Host 'Antwort'
$askuser=$askuser.ToUpper()
switch ($askuser)
{
"" {$path=$lwc
$VMpath='C:\Hyper-V'
}
"C" {$path=$lwc
$VMpath='C:\Hyper-V'
}
"D" { $path=$lwd
$VMpath='D:\Hyper-V'
}
}
}
else
{
if($checklwd -eq $true)
{
$path=$lwd
$VMpath='D:\Hyper-V'
}
if($checklwc -eq $true)
{
$path=$lwc
$VMpath='C:\Hyper-V'
}
}
#get Config Files and get MAC and Description
$configfiles=Get-ChildItem -Path $path -Recurse |Where-Object {$_.Name -like '*.vbox' -and $_.Name -notlike '*Windows*'}
foreach ($cfiles in $configfiles)
{
# W10 X64
if($cfiles.Name -like '*10*64*')
{$w10x64configfile=$cfiles.FullName
$w10x64xml=[xml](get-content $w10x64configfile -ErrorAction SilentlyContinue)
$w10x64xml.Load($w10x64configfile)
$w10x64mac=$w10x64xml.VirtualBox.Machine.Hardware.Network.Adapter.Item(0).MACAddress
$w10x64Description=$w10x64xml.VirtualBox.Machine.Description
$w10param=@{'MAC'= "$w10x64mac" ;'Description'= "$w10x64Description"}
}
############################################
# W7 X64
if($cfiles.Name -like '*7*64*')
{$w7x64configfile=$cfiles.FullName
$w7x64xml=[xml](get-content $w7x64configfile -ErrorAction SilentlyContinue)
$w7x64xml.Load($w7x64configfile)
$w7x64mac=$w7x64xml.VirtualBox.Machine.Hardware.Network.Adapter.Item(0).MACAddress
$w7x64Description=$w7x64xml.VirtualBox.Machine.Description
$w7x64param=@{'MAC'= "$w7x64mac" ;'Description'= "$w7x64Description"}
}
############################################
# W7 X86
if($cfiles.Name -like '*7*86*')
{$w7x86configfile=$cfiles.FullName
$w7x86xml=[xml](get-content $w7x86configfile -ErrorAction SilentlyContinue)
$w7x86xml.Load($w7x86configfile)
$w7x86mac=$w7x86xml.VirtualBox.Machine.Hardware.Network.Adapter.Item(0).MACAddress
$w7x86Description=$w7x86xml.VirtualBox.Machine.Description
$w7x86param=@{'MAC'= "$w7x86mac" ;'Description'= "$w7x86Description"}
}
}
# ###########################################################################
# Create new HYPER-V Path
if($VMpath -eq $false)
{$VMpath='C:\Hyper-V'}
if (!(test-path $VMpath))
{mkdir $VMpath}
################################################################################
# Set Hyper-V Einstellungen HDD Pfad und Maschinenpfad
set-vmhost -VirtualMachinePath $VMpath -ErrorAction SilentlyContinue -Verbose
set-vmhost -VirtualHardDiskPath $VMpath -ErrorAction SilentlyContinue -Verbose
################################################################################
# New Cert for TPM
$Cert=$env:USERNAME
New-HgsGuardian -Name $Cert -GenerateCertificates -ErrorAction SilentlyContinue
$owner = get-hgsguardian -Name $Cert -ErrorAction SilentlyContinue
$kp = New-HgsKeyProtector -Owner $owner -AllowUntrustedRoot -ErrorAction SilentlyContinue
###############################################################################
# Test- Switch
if ( (Get-VMSwitch).count -lt 1)
{
$lanadapter=Get-NetAdapter -ErrorAction SilentlyContinue
foreach ($lan in $lanadapter)
{
if($lan.InterfaceDescription -notlike '*Virtual*')
{
$Hardwarelan=$lan
}
}
New-VMSwitch -Name 'Hyper-Switch' -NetAdapterName $Hardwarelan.Name -Notes 'Durch PS erstellt' -ErrorAction SilentlyContinue -Verbose
}
################################################################################
$switch= Get-VMSwitch -ErrorAction SilentlyContinue
###############################################################################################
$allvm=Get-VM
$w10x64=$false
$w7x64=$false
$w7x86=$false
$w10adm=$false
foreach ($machine in $allvm)
{
if ($machine.VMName -like 'W*10*64')
{
$w10x64=$true
}
###################################
if ($machine.VMName -like 'W*7*64')
{
$w7x64=$true
}
###################################
if ($machine.VMName -like 'W*7*86')
{
$w7x86=$true
}
###################################
if ($machine.VMName -like 'W*10*64*ADM')
{
$w10adm=$true
}
}
########################################################################################################
if( $w10adm -eq $false)
{
# W10 ADM
################################################################################
# Windows 10 X64
$vhdW10ADM="$VMpath\W10x64ADM\vhd_w10_x64_adm.vhdx"
if (!(test-path $vhdW10ADM))
{New-VHD -Path $vhdW10ADM -Dynamic -SizeBytes 80GB -Verbose
}
$w10x64adm='W10-X64-ADM'
$w10admdescription='Windows 10 X64 VM zur Administration'
$vmpathw10= Split-Path -Parent $vhdW10ADM
$adm=new-vm -Name $w10x64adm -MemoryStartupBytes 4GB -SwitchName $switch.name -Path $vmpathw10 -Generation 2
$adm| set-vm -StaticMemory -Notes $w10admdescription -ErrorAction SilentlyContinue
$adm| Add-VMHardDiskDrive -ControllerType SCSI -Path $vhdW10ADM -ErrorAction SilentlyContinue
$w10vmadm=get-vm -Name $w10x64adm
$w10x64LAN= $w10vmadm|Get-VMNetworkAdapter -ErrorAction SilentlyContinue
$w10x64LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -ErrorAction SilentlyContinue
$w10hddadm=$w10vmadm|Get-VMHardDiskDrive
Set-VMFirmware -VM $w10vmadm -EnableSecureBoot Off -ErrorAction SilentlyContinue
Set-VMProcessor -VMName $w10x64adm -ExposeVirtualizationExtensions $true -ErrorAction SilentlyContinue
Set-VMFirmware -VM $w10vmadm -BootOrder $w10hddadm -ErrorAction SilentlyContinue
$w10vmadm|Enable-VMTPM -Passthru -ErrorAction SilentlyContinue
Set-VMKeyProtector -VMName $w10x64adm -KeyProtector $kp.RawData
Enable-VMTPM -VM $w10vmadm -ErrorAction SilentlyContinue
$adm|Set-VMFirmware -BootOrder $w10x64LAN,$w10hddadm
################################################################################
}
########################################################################################################
if($w10x64 -eq $false)
{
################################################################################
# Windows 10 X64
$vhdW10="$VMpath\W10x64\vhd_w10_x64.vhdx"
if (!(test-path $vhdW10))
{New-VHD -Path $vhdW10 -Dynamic -SizeBytes 80GB -Verbose
}
$w10x64name='W10-X64'
$w10x64mac=$w10param.MAC
$w10description=$w10param.Description
$vmpathw10= Split-Path -Parent $vhdW10
new-vm -Name $w10x64name -MemoryStartupBytes 4GB -SwitchName $switch.name -Path $vmpathw10 -Generation 2
if($w10description.Length -gt 1)
{ set-vm -Name $w10x64name -StaticMemory -Notes $w10description -ErrorAction SilentlyContinue}
else
{ set-vm -Name $w10x64name -StaticMemory -Notes 'W10-X64' -ErrorAction SilentlyContinue }
Add-VMHardDiskDrive -VMName $w10x64name -ControllerType SCSI -Path $vhdW10 -ErrorAction SilentlyContinue
$w10vm=get-vm -Name $w10x64name
$w10x64LAN= $w10vm|Get-VMNetworkAdapter -ErrorAction SilentlyContinue
if($w10x64mac.Length -gt 1)
{ $w10x64LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -StaticMacAddress $w10x64mac -ErrorAction SilentlyContinue}
else
{$w10x64LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -ErrorAction SilentlyContinue }
$w10hdd=$w10vm|Get-VMHardDiskDrive
Set-VMFirmware -VM $w10vm -EnableSecureBoot Off -ErrorAction SilentlyContinue
Set-VMProcessor -VMName $w10x64name -ExposeVirtualizationExtensions $true -ErrorAction SilentlyContinue
Set-VMFirmware -VM $w10vm -BootOrder $w10hdd -ErrorAction SilentlyContinue
$w10vm|Enable-VMTPM -Passthru -ErrorAction SilentlyContinue
Set-VMKeyProtector -VMName $w10x64name -KeyProtector $kp.RawData
Enable-VMTPM -VM $w10vm -ErrorAction SilentlyContinue
Set-VMFirmware -VM $w10vm -BootOrder $w10x64LAN,$w10hdd -ErrorAction SilentlyContinue
################################################################################
}
########################################################################################################
if($w7x64 -eq $false)
{
################################################################################
# Windows 7 X64
$vhdW7x64="$VMpath\W7x64\vhd_w7_x64.vhdx"
if (!(test-path $vhdW7x64))
{New-VHD -Path $vhdW7x64 -Dynamic -SizeBytes 80GB -Verbose
}
$w7x64name='W7-X64'
$w7x64mac=$w7x64param.MAC
$w7x64description=$w7x64param.Description
$vmpathw7x64= Split-Path -Parent $vhdW7x64
new-vm -Name $w7x64name -MemoryStartupBytes 4GB -SwitchName $switch.name -Path $vmpathw7x64 -BootDevice NetworkAdapter -VHDPath $vhdW7x64
if($w7x64Description.Length -gt 1)
{ set-vm -Name $w7x64name -StaticMemory -Notes $w7x64description -ErrorAction SilentlyContinue}
else
{set-vm -Name $w7x64name -StaticMemory -Notes 'W7-X64' -ErrorAction SilentlyContinue}
$w7x64vm=get-vm -Name $w7x64name
$w7x64LAN= $w7x64vm|Get-VMNetworkAdapter -ErrorAction SilentlyContinue
if($w7x64mac.Length -gt 1)
{ $w7x64LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -StaticMacAddress $w7x64mac -ErrorAction SilentlyContinue}
else
{$w7x64LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -ErrorAction SilentlyContinue }
$w7x64hdd=$w7x64vm|Get-VMHardDiskDrive
Set-VMFirmware -VM $w7x64vm -EnableSecureBoot Off -ErrorAction SilentlyContinue
Set-VMProcessor -VMName $w7x64name -ExposeVirtualizationExtensions $true -ErrorAction SilentlyContinue
Set-VMFirmware -VM $w7x64vm -BootOrder $w7x64hdd -ErrorAction SilentlyContinue
$w7x64vm|Enable-VMTPM -Passthru -ErrorAction SilentlyContinue
Set-VMKeyProtector -VMName $w7x64name -KeyProtector $kp.RawData
Enable-VMTPM -VM $w7x64vm -ErrorAction SilentlyContinue
################################################################################
}
########################################################################################################
################################################################################
# Windows 7 X86
if($w7x86 -eq $false)
{
$vhdW7x86="$VMpath\W7x86\vhd_w7_x86.vhdx"
if (!(test-path $vhdW7x86))
{New-VHD -Path $vhdW7x86 -Dynamic -SizeBytes 80GB -Verbose
}
$w7x86name='W7-X86'
$w7x86mac=$w7x86param.MAC
$w7x86description=$w7x86param.Description
$vmpathw7x86= Split-Path -Parent $vhdW7x86
new-vm -Name $w7x86name -MemoryStartupBytes 4GB -SwitchName $switch.name -Path $vmpathw7x86 -BootDevice NetworkAdapter -VHDPath $vhdW7x86
if($w7x86Description.Length -gt 1)
{ set-vm -Name $w7x86name -StaticMemory -Notes $w7x86description -ErrorAction SilentlyContinue}
else
{set-vm -Name $w7x86name -StaticMemory -Notes 'W7-X86' -ErrorAction SilentlyContinue}
$w7x86vm=get-vm -Name $w7x86name
$w7x86LAN= $w7x86vm|Get-VMNetworkAdapter -ErrorAction SilentlyContinue
if($w7x86mac.Length -gt 1)
{ $w7x86LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -StaticMacAddress $w7x86mac -ErrorAction SilentlyContinue }
else
{$w7x86LAN|Set-VMNetworkAdapter -MacAddressSpoofing On -ErrorAction SilentlyContinue }
$w7x86hdd=$w7x86vm|Get-VMHardDiskDrive
Set-VMFirmware -VM $w7x86vm -EnableSecureBoot Off -ErrorAction SilentlyContinue
Set-VMProcessor -VMName $w7x86name -ExposeVirtualizationExtensions $true -ErrorAction SilentlyContinue
Set-VMFirmware -VM $w7x86vm -BootOrder $w7x86hdd -ErrorAction SilentlyContinue
$w7x86vm|Enable-VMTPM -Passthru -ErrorAction SilentlyContinue
Set-VMKeyProtector -VMName $w7x86name -KeyProtector $kp.RawData
Enable-VMTPM -VM $w7x86vm -ErrorAction SilentlyContinue
################################################################################
}
write-host 'Fertig' -ForegroundColor Yellow
Falls keine mac gefunden worden ist,tragen wir diese ein.
Das Boottemplate ist im Anhang.
Die grup.cfg ist.
Code: Select all
#
# EPE4.0/Grub2 Prototype V.2
#
# Not yet: automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod progress
insmod gfxterm
insmod video
insmod video_colors
insmod video_bochs
insmod video_cirrus
insmod all_video
insmod usbms
insmod net
insmod tftp
insmod jpeg
insmod png
insmod font
if [ ${grub_platform} != pc ]; then
insmod efi_gop
insmod efi_uga
insmod efinet
fi
#set gfxpayload=1280x1024x32
#set gfxmode=1280x1024@85
set gfxpayload=1024x768x32
set gfxmode=1024x768@85
gfxpayload=keep
loadfont /boot/grub/theme/unifont.pf2
terminal_output gfxterm
#terminal_output console
set timeout=0
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
echo 'Empirum Preboot Environment 4.4.4.544 / Buildroot with customfs.cpio'
background_image -m stretch boot/grub/Theme/wupperwurm.png
echo 'The Empirator was here :)'
menuentry 'Empirum Preboot Environment 4.4.4.544 / Buildroot with customfs.cpio' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'EPE' {
#
# options
# -------
#
empirumserverip=${pxe_default_server}
serviceserverip=${pxe_default_server}
eis_debugmode=10
epe_debug=0
#
#
kernel_options1='EMPIRUMSERVERIP='${empirumserverip}' SERVICESERVERIP='${serviceserverip}' EIS_DEBUGMODE='${eis_debugmode}' EPE_DEBUG='${epe_debug}
kernel_options2='consoleblank=0 nomodeset EPE_REMOVE_XPARTS=1'
epe_name='HypervEPE'
epe_id='25'
# set gfxmode=1920x1080,1280x800,640x480,auto
# set gfxpayload=1280x1024@85
set gfxmode=1024x768,640x480,auto
set gfxpayload=1024x768@85
set timeout=0
set grub_hidden_timeout_quiet=true
insmod progress
insmod gzio
insmod part_msdos
insmod ext2
insmod fat
insmod exfat
insmod part_gpt
insmod ntfs
insmod usb_keyboard
insmod bsd
insmod search_fs_uuid
insmod chain
echo 'Loading Empirum Preboot Environment'
echo 'Using Bootimage: '${epe_name}
echo 'Bootimage Id: '${epe_id}
echo 'Options: '${kernel_options1}
echo 'Options: '${kernel_options2}
echo 'GrubCpu: '${grub_cpu}
echo 'Grub Platform: '${grub_platform}
echo 'Client IP: '${net_default_ip}
echo 'Connected PXE Server: '${pxe_default_server}
echo 'Empirum Server: '${empirumserverip}
echo 'root: '${root}
echo 'The Empirator modified the Template on 16.05.2017'
if [ ${grub_cpu} = x86_64 ]; then
echo 'Loading Empirum Preboot Environment Kernel X64...'
linux /boot/x86_64/bzImage.x86_64.signed ${kernel_options1} ${kernel_options2} EIS_DOARCH=X64
echo 'Loading initial ramdisk/rootfs and customfs overlay...'
initrd /boot/rootfs.cpio.gz /boot/x86_64/kmods_x86_64.cpio.gz /boot/customfs.cpio
else
echo 'Loading Empirum Preboot Environment Kernel X86...'
linux /boot/i586/bzImage.i586.signed ${kernel_options1} ${kernel_options2} EIS_DOARCH=X86
echo 'Loading initial ramdisk/rootfs and customfs overlay...'
initrd /boot/rootfs.cpio.gz /boot/i586/kmods_i586.cpio.gz /boot/customfs.cpio
fi
}
Lars
- Attachments
-
- Boot.png
- (19.16 KiB) Downloaded 187 times
Who is online
Users browsing this forum: No registered users and 4 guests