I'm trying to use Packer form Hashicorp to create VMs. The idea is that I can create Windows 10 VMs for for each of my assignments, and run those VMs on my "main" Windows 10. I have access to Hyper-V, and as of late 2016, Packer supports that too.
Grabbing several files from Matt Wrock's Github repository, I have created a json file, an Autounattend and some scripts. When running Packer, I ended up with an error saying "Error getting WinRM host: No ip address". This had gone on for 5+ hours, so something was not going right. Interestingly, the Hyper-V Manger said that the VM was there, and I could even log in. Then I noticed that none of install scripts had been executed. For instance, in my Autounattend I execute Matt's boxstarter.ps1 script to install Boxstarter, but Boxstarter has not been installed.
To get a better visual on the process, I changed the Autounattend.xml to have all WillShowUI properties set to true. Nothing appears. To me this seems like Windows 10 is not booted. Any idea how I can check this? Also, from a different Github repository, I found in a json file for Windows Server 2013 the "boot_command" with value aaa. Without having any idea whether this applies to Windows 10 as well, I put that in my json file too. Maybe this boot command is wrong?
Alternatively, is there anyone out there having a public repository which I can use to create Windows 10 VMs that will run on Hyper-V on a Windows 10 machine?
Got some good news :) You don't need to build Packer from source for the Hyper-V provisioner. It was merged in at version 0.12.1 so if you have the latest you're good to go.
Here are some samples that I used when testing it for version 0.12.1+:
https://github.com/StefanScherer/packer-windows - Samples for Windows 10 & Windows Server 2016 set up with Docker & Windows containers
Ubuntu 16.04, hyperv-iso, generation 2 (UEFI) https://github.com/taliesins/packer-baseboxes/blob/master/hyperv-ubuntu-16.04.json
Feel free to ping me on GitHub (#patricklang) with issues in any of those repos.
There is not enough details to tell what's wrong.
Try using taliesins basebox - Windows 10, he is the main author of the Hyper-V support in Packer and I expect his examples to work.
Related
Windows 10 Pro, v1803 Build 17134.648, 64-bit. Hyper-V Manager v10.0.17134.1.
I have had Hyper-V running on my Windows 10 machine for many months, but recently have had an error when starting my VMs up: Microsoft VmBus (Instance ID [long GUID]): Failed to Power on with Error 'The system cannot find the path specified.'.
(Note: I have moved my default Virtual Hard Disks and Virtual Machines folders to a harddrive that is not my C: due to space limitations.)
(clarification) While Hyper-V can see existing and new VMs, it cannot start any of them without throwing the above error. This applies to machine that pre-existed prior to the first error, or were newly created using Quick Create (with default settings.) There are no devices in the VM settings that indicate they are in error, and the VHD is found in the location the settings indicate it should be.
I have no idea what the path is that it's claiming it cannot find. I can find confirmation in the Event Logs, but no additional clues. In Applications and Services Logs/Microsoft/Windows/Hyper-V-Worker/Admin, I see the two error event IDs 12010 ['Windows 10 Dev Environment' Microsoft VmBus: Failed to Power on with Error 'The system cannot find the path specified.' (0x80070003).] and 10230 ['Windows 10 Dev Environment' failed to start.].
Can someone please give me a clue where I can look to confirm what "path specified" it's looking for, and how I can provide it, or change it?
Thanks to all who tried to help, but I have since abandoned this entirely. I have purchased a new machine, which I will be installing a new Windows 10 environment onto, and will start Hyper-V completely from scratch on that box, then after confirming that Hyper-V functions correctly, I will import my VMs to there.
We have a WebSphere Portal Cluster V8.5 on AIX PowerPC OS. i want to move it to one of the Linux Based OS such as (RedHat, CentOS, Oracle etc..). Is it possible? how is it done? is it enough to copy the installation folder from AIX to Linux /usr/IBM/WebSphere/ or do i need to make a new installation on Linux and migrate the profiles? I'll appreciate the Help on this issue.
I have cloned a WebSphere Portal from one AIX OS to another AIX before, and i changed the hostname and nodename accordingly and it works perfectly. but never cloned a websphere portal from one OS (Unix) to another (Linux). and before trying it would like to know if someone has done it or tested it before.
Thanks in advance for the help!
Joe
it is best to do a new install and then do a staging to production copy of the system. I have seen the copy work between machines that are the same os, but you may run into java problems at some point.
Binaries are different. You need to install linux verison of Portal and then you may chose to do export and import. Even PAA would work in this case. We recently upgraded our portal version from 6.1 to 8.5 and also had moved out of AIX to Linux. We have followed the same strategy. If you fall into any issue, you may reach out.
I have searched the questions and have not found an answer to this one:
I am developing an existing project (git repo) that runs only on Linux. For the time being I have at my disposal only a windows laptop which I cannot modify. This laptop has Intellij installed and internet access. I cannot, for example, create a Linux VM on this laptop.
Is there a way I can put the project code on an Amazon ec2 Linux instance and build the project on that instance, while viewing and developing the code in Intellij? All compilation and code execution has to be done remotely, on the ec2 Linux instance. I cannot build locally and push from the windows laptop.
2 possible configurations might be:
(1) install intellij on the ec2 instance and x-window in from windows to view the intellij screens;
(2) use the intellij on the Windows laptop and somehow point the intellij to the ec2 instance in order to view, edit, build, and run the project on that instance.
Any ideas are greatly appreciated!
ec2 with enough memory for development is billed / hour. For 32gb RAM it's >$80/month (always online ~450h).
You could use wls 2 under windows. You can install IDEA and use it trough X server like
VcXsrv and access to windows files. It's not the best idea to run full GNOME (even xfce4). Google chrome also works very well
Downsides are:
(still) slow access to drive compared to raw Linux
I cannot configure WSL to access same VPN as in Windows. It simply cuts off internet connection for WSL while I click connect in windows.
I'm in the intitial stages of setting up our new production VM. Kentico 9 has been installed, but when i apply the same hotfix version we have in development i get this. I'm RDV'd into the VM while attempting this.
Our infrastructure team set the VM up, and did the base install, and said the matched our DEV, QA, and UAT environments, and we're running on Windows Server 2012 R2.
Try to apply hotfix manually.
1) download hotfix setup from http://devnet.kentico.com/download/hotfixes
2) check that hotfix_x_y.exe was downloaded correctly (right-click on exe -> Properties -> Digital Signatures -> select signer and click "Details" - "This digital signature is OK")
3) start hotfix_x_y.exe and follow installation wizard (next, next...), in hotfix utility browse to your instance, next, next...
Try to run hotfix as remote installation?
Are you logged into your VM with RDP when you are doing this or doing it remotely from another machine? If remotely, then the answer above might help, but overall I would try re-downloading the hotfix and try again as it appears the hotfix package might of been corrupted during the download process.
One possible cause is if your infrastructure team has the traffic throttled or majorly firewalled on that machine. If so, sometimes it can cause downloads to miss packets and become corrupted. If it does not work again, try downloading to another system and then move to that one and see if that helps.
I have a set of machines, a mixture of Linux and Windows Boxes.
I hav set up rsync to pull from the Linux Machines to a Linux Server box.
I am trying to accomplish the same using cwRsync, to pull to the Linux box from the windows machines. I have downloaded the free version from https://www.itefix.no/i2/content/cwrsync-free-edition and also I have downloaded CopSSH. I have managed to install CopSSH fine and I am able to SSH between the Linux and Windows hosts no problem using keys rather than passwords.
However, for the life of me I can't get this cwRsync working, I've googled the matter to death, and your meant to unzip the directory, configure the environment settings in the batch file then install it. However, there is nothing to install it with! and the reason it isn't working is because it needs to install a windows service for it to run.
Any help would be much appreciated!
As described at itefix web page for the free edition, it allows to initiate rsync from your Windows machine, i.e. client functionality only (push data). Server functionality allowing you to set up an rsync server on Windows to pull data from it is not a part of the free edition.