Comments (7)
What we need is a check in the GO code that determines if that name already exists in the ISO repository and then upload or skip and just reference if its there.
Already done:
4f90bf5
from packer-plugin-xenserver.
UPDATE: only when an ISO is downloaded from a remote URL is it placed in the SR instead of the SR_ISO.
I was able to upload a local ISO file into the SR_ISO properly when the iso_url and iso_name property are the same. If I change the iso_url to an HTTP address, it uploads the ISO to the SR and not the SR_ISO.
from packer-plugin-xenserver.
Hi !
I'm currently using the provider and I had the same issue as you.
I found out, in the file common-config.go, between the line 274 and 284, config.SrName is used instead of config.SrISOName.
I changed that and i recompiled the plugin, and now my ISO is on my ISO SR.
@ddelnano: Do you want me to do a PR to change these lines ?
from packer-plugin-xenserver.
I worked around this by uploading my CD and just referencing the SR and the ISO itself. This prevents uploading over and over. What we need is a check in the GO code that determines if that name already exists in the ISO repository and then upload or skip and just reference if its there.
This wasn't a big issue for me since I am using the same ISO over and over and we now either make a script to upload the latest copy or manually complete that prior to deployment.
from packer-plugin-xenserver.
@AtaxyaNetwork that would be great. I finally have a more stable test environment for this plugin, which was a big hurdle for me quickly reviewing changes. Getting fully working CI would be great, but for now I will be able to turn around PR review more quickly.
from packer-plugin-xenserver.
Done !
from packer-plugin-xenserver.
This will be fixed in v0.5.3, which should be available in the next hour or so!
from packer-plugin-xenserver.
Related Issues (20)
- New release ? HOT 1
- discord invite link doesn't work HOT 1
- plugin compile instructions incorrect? HOT 6
- Recommended Workflow HOT 2
- [FEATURE REQUEST] - Support cd_files similar to floppy_files
- [Feature Request] Remove vnc exclusive lock when packer in debug mode
- Feature request: Add <waitXX> in boot_command
- boot_command appears to lose vnc connection on guest reboot HOT 1
- Feature request:Support SSH private keys with a passphrase
- Crash when lauching packer build only with 0.7.2 HOT 4
- packer examples/ubuntu/ubuntu-2004.pkr.hcl HOT 1
- [FEATURE REQUEST] Add ability to provide content directly to floppy_files and http_directory
- XenServer 8+ doesn't have xs-tools.iso by default, no option to ignore it HOT 3
- ISO Upload - Even is the ISO exists it is uploaded HOT 1
- Support changes of IP address on reboot of VM HOT 5
- Update builder documentation to include the missing (boot) `firmware` parameter HOT 2
- Cannot recreate template if old one (with same name) still exists HOT 3
- Clarification on keep_vm, format, output_directory, and sr_name. HOT 3
- Let users choose if they want a template or a full VM HOT 3
- Boot command fails; Error detecting local IP: ssh: handshake failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-xenserver.